const path = require('path')

function resolve (dir) {
  return path.join(__dirname, dir)
}

module.exports = {
  resolve: {
    alias: {
      '@': resolve('src'),
      '@assets': resolve('src/assets'),
      '@pages': resolve('src/pages'),
      '@components': resolve('src/components'),
      '@utils': resolve('src/utils')
    }
  }
}
